package com.gyj.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
	@GetMapping("/user/{token}")
	public Long tenantIdByToken(@PathVariable("token") String token) {
		long tenantId;
		if ("fangzheng-token".equals(token)) {
			tenantId = 1L;
		} else {
			tenantId = 2L;
		}
		return tenantId;
	}
}
